/**
 * Main process init file
 */
 const toggleDarkMode = require('./darkmode')
 const bluetooth = require('./bluetooth')
 const webHID = require('./webhid')
 const menu = require('./menu')
 const protocal = require('./protocol')
 const drag = require('./drag')
 const notification = require('./notification')
 const progressBar = require('./progressbar')
 const recentFile = require('./recentFile')
 const spellcheck = require('./spellcheck')
 const taskbar = require('./taskbar')
 const tray = require('./tray')


const initMain = (win) => {
  toggleDarkMode()
  bluetooth(win)
  webHID(win)
  menu(win)
  protocal(win)
  drag()
  notification.showNotification()
  progressBar(win)
  recentFile()
  spellcheck(win)
  taskbar()
  tray()
}

module.exports = initMain